package com.guanyong.dao;

import com.guanyong.model.RoleModel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by mxk on 2017/6/7.
 */
public interface IRoleDaoMapper {

    int insert(RoleModel record);

    int update(RoleModel record);

    @Select("select * from t_ad_role ")
    @ResultMap("RoleResultMap")
    List<RoleModel> GetAllRoleList();

    @Select("select * from t_ad_role WHERE f_id=#{fid}")
    @ResultMap("RoleResultMap")
    RoleModel GetRoleById(Integer fid);
}
